using UnityEngine;
using System.Collections;

public class CommandSource
{
	public bool moveForward = false;
	public bool moveBackward = false;
	public bool rotateLeft = false;
	public bool rotateRight = false;
	public bool primarySkill = false;
	public bool releasePrimarySkill = false;
	public bool secondarySkill = false;
	
	public void reset()
	{
		moveForward = false;
		moveBackward = false;
		rotateLeft = false;
		rotateRight = false;
		primarySkill = false;
		releasePrimarySkill = false;
		secondarySkill = false;
	}
	public bool consumeMoveForward()
	{
		bool t = moveForward;
		moveForward = false;
		return t;
	}
	public bool consumeMoveBackward()
	{
		bool t = moveBackward;
		moveBackward = false;
		return t;
	}
	public bool consumeRotateLeft()
	{
		bool t = rotateLeft;
		rotateLeft = false;
		return t;
	}
	public bool consumeRotateRight()
	{
		bool t = rotateRight;
		rotateRight = false;
		return t;
	}
	public bool consumePrimarySkill()
	{
		bool t = primarySkill;
		primarySkill = false;
		return t;
	}
	public bool consumeReleasePrimarySkill()
	{
		bool t = releasePrimarySkill;
		releasePrimarySkill = false;
		return t;
	}
	public bool consumeSecondarySkill()
	{
		bool t = secondarySkill;
		secondarySkill = false;
		return t;
	}
}
